import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/setting',
    name: 'Setting',
    redirect: '/setting/operation_log ',
    meta: {
      title: '设置',
      icon: 'lucide:bolt',
      order: 2400,
      hideInMenu: false,
      keepAlive: true,
      //   roles: ['admin', 'editor'],
      //   sort: 4,
    },
    children: [
      {
        path: '/setting/operation_log',
        name: 'OperationLog',
        component: () => import('#/views/setting/operation_log.vue'),
        meta: {
          title: '日志查询',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/dictionary',
        name: 'Dictionary',
        component: () => import('#/views/setting/dictionary.vue'),
        meta: {
          title: '数据字典',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/contract_management',
        name: 'ContractManagement',
        component: () => import('#/views/setting/contract_management.vue'),
        meta: {
          title: '合同管理',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/protocol_management',
        name: 'ProtocolManagement',
        component: () => import('#/views/setting/protocol_management.vue'),
        meta: {
          title: '协议管理',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/parameter_maintenance',
        name: 'ParameterMaintenance',
        component: () => import('#/views/setting/parameter_maintenance.vue'),
        meta: {
          title: '参数维护',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/parameter_maintenance_up',
        name: 'ParameterMaintenanceUp',
        component: () => import('#/views/setting/parameter_maintenance_up.vue'),
        meta: {
          title: '参数维护(上级优先)',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/project_suspension',
        name: 'ProjectSuspension',
        component: () => import('#/views/setting/project_suspension.vue'),
        meta: {
          title: '项目停用',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/urge_payment',
        name: 'UrgePayment',
        component: () => import('#/views/setting/urge_payment.vue'),
        meta: {
          title: '催款',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/consumption_template',
        name: 'ConsumptionTemplate',
        component: () => import('#/views/setting/consumption_template.vue'),
        meta: {
          title: '消费模版',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/notification_manager',
        name: 'NotificationManager',
        component: () => import('#/views/setting/notification_manager.vue'),
        meta: {
          title: '通知管理',
          hideInMenu: false,
          keepAlive: true,
        },
      },
      {
        path: '/setting/notification_ing',
        name: 'NotificationIng',
        component: () => import('#/views/setting/notification_ing.vue'),
        meta: {
          title: '通知中心',
          hideInMenu: false,
          keepAlive: true,
        },
      },
    ],
  },
];
export default routes;
